package com.example.demo;

import groovy.lang.Binding;
import groovy.util.GroovyScriptEngine;
import groovy.util.ResourceException;
import groovy.util.ScriptException;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.io.IOException;

@SpringBootApplication
public class DemoApplication {

    public static void main(String[] args) throws IOException, ScriptException, ResourceException {
//        SpringApplication.run(DemoApplication.class, args);

        GroovyScriptEngine groovyScriptEngine = new GroovyScriptEngine("src/main/java");
        Binding binding = new Binding();
        groovyScriptEngine.run("中文领域语言.groovy", binding);
    }

}
